home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / lock.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.2 KB  |  48 lines

  1. LOCK
  2.  
  3. Sets the write-protect status of a device.
  4.  
  5. Format
  6.  
  7. LOCK <drive> [ON | OFF] [<passkey>]
  8.  
  9. Template
  10.  
  11. DRIVE/A,ON/S,OFF/S,PASSKEY
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. LOCK sets or unsets the write-protect status of a device or partition. The
  18. LOCK remains on until the system is rebooted or until the LOCK is turned off
  19. with the LOCK OFF command.
  20.  
  21. An optional passkey can be specified. If the passkey is used to lock a hard
  22. disk partition, the same passkey must be specified to unlock the partition.
  23. The passkey can be any number of characters long.
  24.  
  25. Example:
  26.  
  27. 1> LOCK Work: ON SecretCode
  28.  
  29. The Work partition is locked. You can read the contents of Work with commands
  30. such as DIR, LIST, or MORE but you cannot alter the contents of the
  31. partition. If you try to edit the contents of a file on Work, a requester
  32. indicates that Work is write-protected. For example, if you try to create a
  33. new directory by entering the following:
  34.  
  35. 1> MAKEDIR WORK:Test
  36.  
  37. the following message appears:
  38.  
  39. Can't create directory Work:Test
  40. Disk is write-protected
  41.  
  42. To unlock the partition, enter:
  43.  
  44. 1> LOCK Work: OFF SecretCode
  45.  
  46. Locking a device is only good for the duration of the current session.
  47. Resetting or turning off the Amiga cancels the lock.
  48.